{include file='index/header' /}
</head>

<body>
    <div class="main">
        <div class="contents">
            {if $userInfo && $userInfo.isSiteUser && request()->action() != 'collect'}
            <div class="post" id="postform" style="display:block;">
                <div class="postad" id="wcontent">&nbsp;</div>
                <div id="msgInput" class="text" maxlength="2800" onkeyup="check_len1()">
                    <!-- <p>你在做什么呢</p> -->
                </div>
                <input type="hidden" id="topicTitle" value="{$topicTitle | default=''}">
                <div class="postnow">
                    <span>
                        <input type="button" value="发布" class="layui-btn" id="sendButton" />
                    </span>
                    你还可以发布<em id="leftlen1">2800</em>字
                </div>
                <div id="msgToolBar" class="toolbar" style="float: left;"></div>
                <div class="tool-up-class" style="display: none;">
                    <div class="imgHtml" style="display: block;border-radius: 3px;">
                        <!-- <img src="" width="70px" alt=""> -->
                        上传成功！
                        <i class="layui-icon layui-icon-close-fill" onclick="removeImg(this)"
                            style="color: red;cursor:pointer;font-size:20px!important"></i>
                    </div>
                    <input type="hidden" id="mediaVal">
                </div>
                <div class="clear"></div>
            </div>
            {else}
            <div class="top" style="background-color: white;"></div>
            {/if}
            <input type="hidden" id="userInfo" value="{$userInfo|json_encode}" />
            <div class="sendMsg"></div>
            {include file='index/contents' /}
        </div>
        {if !$userInfo}
        {include file='index/sidebar_nologin' /}
        {elseif $userInfo.isSiteUser}
        {include file='index/sidebar_index' /}
        {else}
        {include file='index/sidebar_user' /}
        {/if}
        {include file='index/footer' /}
    </div>

</body>

</html>